package com.zzxy.spring34.po;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanNameAware;


public abstract class User implements BeanNameAware, BeanFactory {
    private String username;

    public User(String username) {
        this.username = username;
    }
    private void setUsername(String username){
        this.username=username;
        System.out.println("2.set properties ...");
    }

    public User() {
        System.out.println("1.init instance ...");
    }

    @Override
    public void setBeanName(String s) {
        System.out.println("3.set bean name ...");
    }
    public  void  setBeanFactory(BeanFactory beanFactory)throws BeansException {
        System.out.println("4.bean bean factory");
    }

}

